# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mlmmj
pkgver=1.4.3
pkgrel=0
pkgdesc="Mailing list managing made joyful"
url="http://mlmmj.org/"
arch="all"
license="MIT"
makedepends="atf-dev"
subpackages="$pkgname-doc"
install="$pkgname.pre-install"
pkgusers="mlmmj"
pkggroups="mlmmj"
source="https://codeberg.org/mlmmj/mlmmj/releases/download/RELEASE_${pkgver//./_}/mlmmj-$pkgver.tar.gz"
options="!check"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	make -j1 DESTDIR="$pkgdir" install
	install -d "$pkgdir"/usr/share/mlmmj/texts
	cp -r listtexts/* "$pkgdir"/usr/share/mlmmj/texts/
	install -o mlmmj -g mlmmj -d "$pkgdir"/var/spool/mlmmj
}

sha512sums="
431dd3e15a9f1b41f0fcfc334e6d50646b386c3cf293926cc80ac7a55e251502ed34acccd5bfa1b7986635acf2a9fc8db1ee4551a48d19b19d031f3a7991b7e9  mlmmj-1.4.3.tar.gz
"
